package com.xinghou.platform.lucene.main;

import com.xinghou.platform.model.main.StoreQueryParam;
import com.xinghou.platform.model.main.User;
import com.xinghou.platform.model.main.UserQueryParam;

import java.io.IOException;
import java.util.List;

/**
 * 用户信息检索
 * @author xuzhen
 *
 */
public interface UserLuceneService {

	/**
	 * 账户信息检索 关键字 key 页数 fromno 每页条数 pagesize 用户类型 usertype  
	 * @param key
	 * @param fromno
	 * @param pagesize
	 * @param userType
	 * @return
	 * @throws IOException
	 */
	public List<User> getSearchUserInfos(String key, int fromno, int pagesize, String userType, String provinceCode) throws IOException;
	
	public List<User> getSearchUserInfos(String key, int fromno, int pagesize, String userType, String provinceCode, Double distince, double lng, double lat) throws IOException;
	
	public List<User> queryUserByParams(UserQueryParam param,int fromno,int pagesize,double distinct ,double lon,double lat);


	public int saveUserInfo(User user);
	
	public int updateUserInfo(User user);
}
